using UnityEngine;
using System.Collections;

public class ThrowCandy : MonoBehaviour {
	private static float	gravity = -0.005f;
	private Vector3			move;
	
	public Vector3 Move
	{
		set {this.move = value;}
		get {return this.move;}
	}

	// Use this for initialization
	void Start () {
		Destroy(gameObject, 1.0f);
	}

	// Update is called once per frame
	void Update () {
		//transform.RotateAround(new Vector3(0.0f, 1.0f, 0.0f), 3.0f);
		transform.Translate(move);
		move.x += gravity;
		transform.localScale -= new Vector3(0.001f, 0.0f, 0.001f);
	}
}